package cn.htsyb.synergy.security.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 资源权限 Vo
 * codeMaker at 2020-07-14
 * @author lakeside hubin_yuan.410@hotmail.com
 * @since 2020-07-14
 */
@Setter
@Getter
@Schema(description = "资源权限 Vo")
public class SecurityPermissionVo {
    /**逻辑编号*/
    @Schema(name = "id", description = "逻辑编号")
    protected  String  id;
    /**有效状态*/
    @Schema(name = "validStatus", description = "有效状态")
    protected  String  validStatus;
    /**创建者*/
    @Schema(name = "createdBy", description = "创建者")
    protected  String  createdBy;
    /**创建时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(name = "createdDate", description = "创建时间")
    protected  Date  createdDate;
    /**最后修改者*/
    @Schema(name = "modifiedBy", description = "最后修改者")
    protected  String  modifiedBy;
    /**最后修改时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(name = "modifiedDate", description = "最后修改时间")
    protected  Date  modifiedDate;
    /**备注描述*/
    @Schema(name = "remarkNote", description = "备注描述")
    protected  String  remarkNote;
    /**排序序号*/
    @Schema(name = "sortNum", description = "排序序号")
    protected  Integer  sortNum;
    /**层级名称*/
    @Schema(name = "layerName", description = "层级名称")
    protected  String  layerName;
    /**层级*/
    @Schema(name = "level", description = "层级")
    protected  Integer  level;
    /**模型*/
    @Schema(name = "model", description = "模型")
    protected  String  model;
    /**名称*/
    @Schema(name = "name", description = "名称")
    protected  String  name;
    /**上级主键*/
    @Schema(name = "parentId", description = "上级主键")
    protected  String  parentId;
    /**权限编码*/
    @Schema(name = "authCode", description = "权限编码")
    protected  String  authCode;
    /**归属系统*/
    @Schema(name = "vestedSystem", description = "归属系统")
    protected  String  vestedSystem;
    /**访问路径*/
    @Schema(name = "visitUrl", description = "访问路径")
    protected  String  visitUrl;

}